package paopaoteacher;
/*
设计一个方法，用于比较两个数组内容是否相同
 */
public class P06 {
    public static void main(String[] args) {
        int[] a1 = {68, 27, 95, 88, 171, 996, 51, 210};
        int[] a2 = {68, 27, 95, 88, 172, 996, 51, 210};
        boolean b=compare(a1,a2);
        System.out.println(b);
    }
    public static boolean compare(int[]a1,int[]a2){
        if (a1.length!=a2.length){
            return false;
        }
        for (int i = 0; i < a1.length; i++) {
            if (a1[i]!=a2[i]){
                return false;
            }
        }
        return true;

    }
}
